// ES6 模块包装器，用于导入 UMD 模块
import './index.umd.js';

// 从全局对象中获取导出的类
const rr = window.railroadDiagrams || {};

// 重新导出所有需要的类
export const AlternatingSequence = rr.AlternatingSequence;
export const Block = rr.Block;
export const Choice = rr.Choice;
export const Comment = rr.Comment;
export const ComplexDiagram = rr.ComplexDiagram;
export const Diagram = rr.Diagram;
export const DiagramMultiContainer = rr.DiagramMultiContainer;
export const End = rr.End;
export const FakeSVG = rr.FakeSVG;
export const Group = rr.Group;
export const HorizontalChoice = rr.HorizontalChoice;
export const MultipleChoice = rr.MultipleChoice;
export const NonTerminal = rr.NonTerminal;
export const OneOrMore = rr.OneOrMore;
export const Optional = rr.Optional;
export const OptionalSequence = rr.OptionalSequence;
export const Options = rr.Options;
export const Path = rr.Path;
export const Sequence = rr.Sequence;
export const Skip = rr.Skip;
export const Stack = rr.Stack;
export const Start = rr.Start;
export const Terminal = rr.Terminal;
export const VerticalSequence = rr.VerticalSequence;
export const ZeroOrMore = rr.ZeroOrMore;
export const defaultCSS = rr.defaultCSS;

// 默认导出
export default rr.default || rr; 